const mongoose = require("mongoose");

/**
 * 用户 实体类
 * @type {mongoose.Schema}
 */
const userSchema = new mongoose.Schema({
	_id: mongoose.Schema.ObjectId,
	username: String,//用户名
	password: String,//密码
	createTime : Date,//创建时间
	email : String //电子邮箱
});

module.exports = mongoose.model("user", userSchema);